<template>
  <div>
      <h1>您好我是京东test</h1>
      <el-button @click="button">返回到BigDad</el-button>
      <h2>up主的名字是{{upname}}</h2>
  </div>
</template>

<script>
export default {
    name:'JDTest',
    data(){
        return{
            upname:'',
        }
    },
    methods:{
        button(){
            console.log('回来了呀');
            this.$router.push({name:'RouterTest'})
        }
    },
    mounted(){
        if(this.$route.params.upname != null){
            this.upname=this.$route.params.upname
        }
    }
}
</script>

<style scoped>

</style>